package cn.net.dpi.core.trace;

public class MetaTraceHolder {

    private static final ThreadLocal<MetaTrace> META_TRACE_THREAD_LOCAL = new ThreadLocal<>();

    public static void set(MetaTrace metaTrace) {
        META_TRACE_THREAD_LOCAL.set(metaTrace);
    }

    public static MetaTrace get() {
        return META_TRACE_THREAD_LOCAL.get();
    }

    public static void remove() {
        META_TRACE_THREAD_LOCAL.remove();
    }

}
